
import 'package:intl/intl.dart';

class DateUtil{

  static String defaultFormat="yyyy-MM-dd HH:mm:ss";

  static String formatDate(DateTime dataTime,{String? format}){
    return DateFormat(format?? defaultFormat).format(dataTime);
  }
}